package com.dz.lm.dao.favorite.read;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import com.dz.lm.common.exception.DaoException;
import com.dz.lm.common.utils.stereotype.ReaderRepository;
import com.dz.lm.domain.favorite.Favorite;

@ReaderRepository("readFavoriteDao")
public interface FavoriteDao {
	
	List<Favorite>ListFavorite() throws DaoException;
	
    Favorite selectByPrimaryKey(@Param("favoriteId") Integer favoriteId) throws DaoException;
    
    List<Map<String, Object>> qryFavoriteListByUserId(Map<String, Object> qryParam) throws DaoException;
    
    Integer qryFavoriteListByUserIdCount(Map<String, Object> qryParam) throws DaoException;
    Integer qryFavoriteByUserIdAndProductIdCount(Map<String, Object> qryParam) throws DaoException;
}
